New function implements GtkCellLayoutClass::get_cells. (#523787)
authorMatthew Barnes <mbarnes@redhat.com>
Sat, 22 Mar 2008 17:53:42 +0000 (17:53 +0000)
committerMatthew Barnes <mbarnes@src.gnome.org>
Sat, 22 Mar 2008 17:53:42 +0000 (17:53 +0000)
2008-03-22  Matthew Barnes  <mbarnes@redhat.com>

* gtk/gtkentrycompletion.c (gtk_entry_completion_get_cells):
New function implements GtkCellLayoutClass::get_cells.  (#523787)

svn path=/trunk/; revision=19923

ChangeLog
gtk/gtkentrycompletion.c

index 42039d38f734977e0f65e42ae3c19e0d290074e0..32dc863ae59cc9f9c38637bfe1b1923efd04ba80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-22  Matthew Barnes  <mbarnes@redhat.com>
+
+       * gtk/gtkentrycompletion.c (gtk_entry_completion_get_cells):
+       New function implements GtkCellLayoutClass::get_cells.  (#523787)
+
 2008-03-22  Tor Lillqvist  <tml@novell.com>
 
        Bug 523782 - Leftover call to GDK_THREADS_LEAVE() in gtktoolbar.c
index cc01b1e3df7f8d82e76edaadf885eed126dde97c..ed1d3c1fe374f79505c14b717b7ef2374f958302 100644 (file)
@@ -98,6 +98,7 @@ static void     gtk_entry_completion_clear_attributes    (GtkCellLayout
 static void     gtk_entry_completion_reorder             (GtkCellLayout         *cell_layout,
                                                           GtkCellRenderer       *cell,
                                                           gint                   position);
+static GList *  gtk_entry_completion_get_cells           (GtkCellLayout         *cell_layout);
 
 static gboolean gtk_entry_completion_visible_func        (GtkTreeModel       *model,
                                                           GtkTreeIter        *iter,
@@ -410,6 +411,7 @@ gtk_entry_completion_cell_layout_init (GtkCellLayoutIface *iface)
   iface->set_cell_data_func = gtk_entry_completion_set_cell_data_func;
   iface->clear_attributes = gtk_entry_completion_clear_attributes;
   iface->reorder = gtk_entry_completion_reorder;
+  iface->get_cells = gtk_entry_completion_get_cells;
 }
 
 static void
@@ -747,6 +749,16 @@ gtk_entry_completion_reorder (GtkCellLayout   *cell_layout,
   gtk_cell_layout_reorder (GTK_CELL_LAYOUT (priv->column), cell, position);
 }
 
+static GList *
+gtk_entry_completion_get_cells (GtkCellLayout *cell_layout)
+{
+  GtkEntryCompletionPrivate *priv;
+
+  priv = GTK_ENTRY_COMPLETION_GET_PRIVATE (cell_layout);
+
+  return gtk_tree_view_column_get_cell_renderers (priv->column);
+}
+
 /* all those callbacks */
 static gboolean
 gtk_entry_completion_default_completion_func (GtkEntryCompletion *completion,